-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Import h5netcdf.core to use EnumType #10779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@kmuehlbauer would you be willing to provide some advice here? The min-deps CI check is failing because |
@maxrjones EnumType was released with h5netcdf 1.4.0 in October 2024. |
This is also mentioned in a comment in the #9509 PR. Maybe you need to conditionally import depending on version? I can have a closer look tomorrow. |
ah, ok thanks for this clarification. It seems we're close, but not quite to the 12 month mark for minimum dependencies |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @maxrjones , I've made a mental note, to not forget to remove this in October.
This PR fixes an import issue with
h5netcdf.core.EnumType
. Recent Python versions require explicit submodule imports, soimport h5netcdf
followed byh5netcdf.core.EnumType
fails because thecore
submodule isn't automatically loaded. This was causing pickling issues with NetCDF4 files (xref developmentseed/titiler-multidim#97).(see also, zarr-developers/zarr-python#3473 for a bug caused by the same behavior)